const filmsManageDao = require("../dao/filmsManageDao");
//新增电影
module.exports.insert = async function (film) {
    return await filmsManageDao.insert(film);
}
//删除电影
module.exports.delete = async function (id) {
    return await filmsManageDao.delete(id);
}
//修改电影
module.exports.update = async function (id) {
    return await filmsManageDao.update(id);
}
//查询所有电影
module.exports.find = async function (page, searchParams) {
    return await filmsManageDao.find(page, searchParams);
}
module.exports.findById = async function(id){
    return await filmsManageDao.findById(id);
}